package com.ruoyi.business.service.article.impl;


import com.ruoyi.business.domain.entity.article.Article;
import com.ruoyi.business.mapper.article.ArticleMapper;
import com.ruoyi.business.service.article.IArticleService;
import com.ruoyi.common.annotation.DataScope;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements IArticleService {
    private static final Logger log = LoggerFactory.getLogger(ArticleServiceImpl.class);

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    @DataScope(deptAlias = "d",userAlias = "u")
    public List<Article> selectArticleList(Article article){
        return articleMapper.selectArticleList(article);
    }
}
